65410b1cab0e77222ed5c6cdb6ef88b846cc085b,apps/containerApp/src/com/parc/ccn/apps/containerApp/ContainerGUI.java,ContainerGUI,sendFile,#String#,318

Before Change


		try {
			System.out.println("Sending repo a file " + filename);
			RepositoryOutputStream ros = _library.repoOpen(ContentName
					.fromNative(filename), null, _library.getDefaultPublisher());
			String content = "Test content for reading a file from the repo";
			byte[] buffer = content.getBytes();
			ros.write(buffer);

After Change


			FileInputStream fs = new FileInputStream(file);
			byte[] buffer = new byte[fs.available()];
			fs.read(buffer);
			CCNFileOutputStream fos = new CCNFileOutputStream(ccnName, null,  _library.getDefaultPublisher(), _library);
			fos.write(buffer);
			fos.close();
			//RepositoryOutputStream ros = _library.repoOpen(ccnName, null, _library.getDefaultPublisher());